package myNewProject.downloader;

import myNewProject.App;
import myNewProject.utils.MyReflectUtil;

public interface Downloader {

    static Downloader setDownloader() {
        String[] names = App.CONFIG.get("Downloader").toString().split("\\.");
        System.out.println("Downloader已加载为" + names[names.length - 1]);
        return MyReflectUtil.getInstance(App.CONFIG.get("Downloader").toString());
    }

    StringBuilder getSourceCode(String url);
}
